/*
 * =====================================================================================
 *
 *       Filename:  pthread_create_key.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  03/28/2011 05:04:01 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Chen Ken (Ken), zlchen.ken@gmail.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include <pthread.h>
#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
	pthread_key_t key = 12345;
	cout << key << endl;
	pthread_key_create(&key, NULL);
	cout << key << endl;
	pthread_key_create(&key, NULL);
	cout << key << endl;
}
